package com.github.chain.admin.common.domain;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author AIQ
 * @date 2023/5/11
 * @project er-trader
 */
@Data
public class RoleMenu implements Serializable {
    private Long roleId;
    private Long menuId;

    private List<Long> authMenuIds = new ArrayList<>();
}


//UPDATE `timo`.`sys_role_menu` SE
//<where>
//<if test="roleId != null">
//        role_id = #{roleId} AND
//</if>
//<if test="authMenuIds != null">
//        AND `menu_id` =
//<foreach collection="authMenuIds" item="menuId" index="index" open="(" separator="," close=")">
//        #{menuId}
//        </foreach>
//        </if>
//        </where>